package com.googlecode.tracey.ui.core;

import com.googlecode.utterlyidle.modules.AbstractModule;
import com.googlecode.utterlyidle.modules.Module;
import com.googlecode.utterlyidle.modules.ModuleDefinitions;
import com.googlecode.yadic.Container;

public class TraceyModuleDefinitions extends AbstractModule {

    public Module defineModules(ModuleDefinitions moduleDefinitions) {
        moduleDefinitions.addRequestModule(MessageServerModule.class);
        moduleDefinitions.addRequestModule(ExtensionsModule.class);
        return this;
    }

    @Override
    public Module addPerRequestObjects(Container container) throws Exception {
        container.add(MessageServers.class);
        container.add(Extensions.class);
        return this;
    }
}
